<?php $dbdhys=dr_site_value('dbdhys');$dbwzys=dr_site_value('dbwzys');?>
 
<!--背景颜色d-beijing-baise d-toububeijing-->
<div style="z-index: 999999;" class="d-kuan d-neikuang-30 navbar-fixed-top  {if $_GET['s'] == 'quan' && $_GET['id'] > 0 || $_GET['s'] == 'huiyuan' || $_GET['s'] == 'tags' || $_GET['s'] == 'wenda' || $_GET['s'] == 'remen'} d-yincang {/if}" >
	<div class="row d-gao-50">
	    
		<div id="head_wrapper_dingbu" class=" d-shang-12 ">
		    
			<div id="s_fm" class="s_form s_form_login d-yincang-sousuo">
			    
				<div class="s_form_wrapper  soutu-env-nomac soutu-env-newindex" id="s_form_wrapper">
					{if dr_is_app('jiansuo') && $jiansuokai == 0}
						<form id="searchForm" action="{CLIENT_URL}index.php" method="get" class="fm  has-soutu d-buhuanhang" >
							<input type="hidden" name="s" value="jiansuo">
							<input type="hidden" name="c" value="home">
							<input type="hidden" name="m" value="index">
							<input type="hidden" name="lei" value="1">
							<span id="s_kw_wrap" class="bg s_ipt_wr new-pmd quickdelete-wrap">
								<!--span class="soutu-btn"></span-->
								<input type="text" class="s_ipt" placeholder="搜索..." name='k' value='{$_GET['k']}' id="kw" maxlength="100" autocomplete="off">
							</span>
							<span class="btn_wr s_btn_wr bg" id="s_btn_wr">
								<input type="submit" value="搜索一下" id="su" class="btn self-btn bg s_btn" >
							</span>
						</form>
					{else}
						<form id="searchForm" action="{CLIENT_URL}index.php" method="get" class="fm  has-soutu d-buhuanhang">
							<input type="hidden" name="s" value="quan">
							<input type="hidden" name="c" value="sou">
							<input type="hidden" name="m" value="index">
							<span id="s_kw_wrap" class="bg s_ipt_wr new-pmd quickdelete-wrap">
								<!--span class="soutu-btn"></span-->
								<input type="text" class="s_ipt" name='k' placeholder="搜索..." value='{$_GET['k']}' id="kw"  maxlength="100" autocomplete="off">
							</span>
							<span class="btn_wr s_btn_wr bg" id="s_btn_wr">
								<input type="submit" value="搜索一下" id="su" class="btn self-btn bg s_btn" >
							</span>
						</form>
					{/if}
				</div>
			</div>
		
	    
			<div class="d-div-you d-wenzi-youbian d-gao-60 d-yincang-pc d-you-10" id="d-fugao-2">
				<span class="d-shang-5 pull-right ">
					<a href="{SITE_URL}index.php?s=member&app=duixin" class="d-buhuanhang">
						
						<img src="{HOME_THEME_PATH}quan/img/xiaoxi3.png" width="38" height="38" class="">
						{if $member}
							{if dr_is_app('duixin')}
								{count action=table table=1_duixin shouxinren=$member.uid yidu=0 return=xiaoxi}
								{if $xiaoxi_count > 0}
										<span class="badge d-beijing-chengse dr_notice_num d-tishiss">0</span>
										<script>
											$('.dr_notice_num').html("{$xiaoxi_count}");
										</script>
								{/if}
							{/if}
						{/if}
					</a>
				</span>
			</div>
			<div class="d-div-you d-wenzi-youbian d-gao-60 d-yincang " id="d-fugao" >
				{if $member}
					<span class="d-shang-8 pull-right  d-xiala">
						<a href="{SITE_URL}index.php?s=member" class="d-yuanjiao-50">
							<img src="{$member.avatar}" width="38" height="38" class="d-yuanjiao-50">
						</a>
						<div class="d-xiala-ji">
							<div class="d-xiala-ji-0 d-quxian-0 ">
								<a class="d-wenzi-16 d-hanggao-30" href="{d_huiyuan_url($member.id)}">
									<i class="bi bi-award"></i> 个人主页
								</a>
								<a class="d-wenzi-16 d-hanggao-30" href="{SITE_URL}index.php?s=member">
									<i class="bi bi-person"></i> 会员中心
								</a>
								<a class="d-hanggao-30" href="javascript:;" onclick="dr_loginout()">
									<i class=" bi bi-box-arrow-right"></i> 退出
								</a>
							</div>
							<div class="d-clear"></div>
						</div>
					</span>
					<span class="d-shang-8 pull-right d-zuoyou-20 d-quxian-0">
						<a href="{SITE_URL}index.php?s=member&app=duixin">
							<img src="{HOME_THEME_PATH}quan/img/xiaoxi3.png" width="38" height="38" class="">
							{if $member}
								{if dr_is_app('duixin')}
									{count action=table table=1_duixin shouxinren=$member.uid yidu=0 return=xiaoxi}
									{if $xiaoxi_count > 0}
											<span class="badge d-beijing-chengse dr_notice_num d-tishis">{$xiaoxi_count}</span>
											
									{/if}
								{/if}
							{/if}
							
						</a>
						
					</span>
					
					{if $duoquan ==1}
					<span class="d-shang-8 pull-right ">
						<a href="{dr_member_url('quan/son/add', ['tid'=>'','cid'=>$danquanid])}" class="d-yuanjiao-50">
							<img src="{HOME_THEME_PATH}quan/img/fabu2.png" width="38" height="38" class="d-yuanjiao-50">
						</a>
					</span>
					{else}
					<span class="d-shang-8 pull-right ">
						<a href="{SITE_URL}index.php?s=member&app=quan&c=woquan&m=index" class="d-yuanjiao-50">
							<img src="{HOME_THEME_PATH}quan/img/fabu2.png" width="38" height="38" class="d-yuanjiao-50">
						</a>
					</span>
					{/if}
					<!--span class="d-shang-12 pull-right">
						<a>
							<div class="d-neikuang-8-20 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">发布</div>
						</a>
						
						
					</span-->
				{else}
					{if dr_is_app('notice')}
						{if isset($ci->member_cache['oauth']['weixins']['id'])}
						<div class="d-buhuanhang">
							<div class="d-shang-5">
								<a target="_blank" href="{Router::oauth_url('weixin', 'login', urlencode($my_web_url))}">
									<div class=" d-zuo-10 d-neikuang-8-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai"><i class="fa fa-wechat"></i></div>
								</a>
							</div>
							<div class="d-shang-5 d-zuo-10">
								<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
									<div class="d-neikuang-8-20 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">登 录</div>
								</a>
							</div>
						</div>
						{else}
							<div class="d-shang-5">
								<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
									<div class="d-neikuang-8-20 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">登 录</div>
								</a>
							</div>
							{if isset($ci->member_cache['oauth']['qq']['id']) && $ci->member_cache['oauth']['qq']['id']}
							<div class="d-shang-5 ">
								<a href="{Router::oauth_url('qq', 'login', urlencode($my_web_url))}" class="d-yuanjiao-50">
									<img src="{HOME_THEME_PATH}web/img/qq.png" width="38" height="38" class="d-yuanjiao-50 d-you-10">
								</a>
							</div>
							{/if}
						{/if}
					{else}
						
						<div class="d-shang-8">
							<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
								<div class="d-neikuang-8-20 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">登 录</div>
							</a>
						</div>
					{/if}
				{/if}
				
			</div>
		</div>
	</div>
</div>
{if $duoquan == 1 && !$_GET['id']}
<div class="d-kuan d-gao-50 d-yincang-pc"></div>
<div class="d-container d-yincang-pc d-xia-10 d-dingwei-50">
	
	<div class="d-row">
	    <div class="d-col-md-8">
			<!--圈子导航-->
			<div class="d-kuan d-beijing-baise d-bianhua-20 d-beijing-baise">
				<div class="row d-buhuanhang">
					<div id="header">
						<div class="swiper-wrapper baise d-buhuanhang">
							
							<div class="swiper-slide baise">
								<div class="d-neikuang-5-10 d-wenzi-16 d-a-hei d-jiacu">
									<a href="{CLIENT_URL}">首页</a>
								</div>
								<p class="gaoliangl curs_ss"></p>
							</div>
							{php $erjibiao = '1_quan_fenlei';}
							{table table=$erjibiao yijiid=0 cid=$danquanid order=paixu_asc num=100 return=t1}
							
							<div class="swiper-slide baise" onclick="location.href='{dr_url('quan/show/index', ['id'=>$danquanid,'qid'=>$t1.id])}'">
								<div class="d-neikuang-5-10 d-wenzi-16  {if $_GET['qid'] == $t1.id } d-jiacu d-a-hei {else} d-a-hui{/if}">
									<a href="{dr_url('quan/show/index', ['id'=>$danquanid,'qid'=>$t1.id])}">{$t1.name}</a>
								</div>
								{if $_GET['qid'] == $t1.id }<p class="gaoliangl curs_ss"></p>{/if}
							</div>
							{/table}
							<div class="swiper-slide baise">
								<div class="d-neikuang-5-10 d-wenzi-16 {if $_GET['t'] == 'jinghua'}d-a-hei d-jiacu {else} d-a-hui {/if}">
									<a href="{dr_url('quan/show/index', ['id'=>$danquanid,'t'=>'jinghua'])}">精华</a>
								</div>
								{if $_GET['t'] == 'jinghua' }<p class="gaoliangl curs_ss"></p>{/if}
							</div>
						</div>
					</div>
				</div>
				<!--div class="d-clear d-yincang-pc"></div>
				<div class="d-xian d-yincang-pc"></div-->
		</div>
	</div>
</div>
</div>
{/if}

<style>
	.d-toububeijing {
		{if $dbdhys} 
		background-color: {$dbdhys};
		box-shadow: 0 6px 14px 0 rgba(227,233,237,.35); 
		{else} 
		background-color: #ffffff;
		box-shadow: 0 6px 14px 0 rgba(227,233,237,.35);
		{/if}
	}
	{if $duoquan == 1 && !$_GET['id']}
	@media screen and (max-width: 990px) { /*当屏幕尺寸小于1200px时，应用下面的CSS样式*/
		.d-toububeijing {
			{if $dbdhys} 
			background-color: {$dbdhys};
			box-shadow: 0 6px 14px 0 rgba(255, 255, 255, 1.0);
			{else} 
			background-color: #ffffff;
			box-shadow: 0 6px 14px 0 rgba(255, 255, 255, 1.0);
			{/if}
		}
	}
	.d-dingwei-50 {
	    /* position: sticky; */
	    position: sticky;
	    top: 50px;
	    z-index: 4;
	    width: 100%;
	    /*margin-left: -110px;*/
	}
	
	#header {
	    /*position: absolute;*/
	    /* left: 0; */
	    /*top: 50px;*/
	    z-index: 999;
	    height: 43px;
	    /*margin-right: auto;
	    margin-left: auto;*/
	    overflow: hidden;
	    /* background: #fdfdfc; */
	    font: 12px/40px hiragino sans gb, microsoft yahei, simsun;
	    /* box-shadow: 3px 3px 3px rgb(202 202 202 / 20%); */
	    /* background-color: #f5f7f8; */
	}
	.curs_ss {
	    color: #72a0aa !important;
	    font-size: 12px !important;
	    font-family: PingFangSC-Semibold, PingFang SC;
	    font-weight: 600 !important;
	    border-bottom: 3px solid #343434;
	    width: 20px;
	    border-radius: 3px;
	    position: absolute;
	    bottom: -18px;
	    left: 50%;
	    transform: translate(-50%, 0);
	}
	.dplayer-controller .dplayer-icons .dplayer-setting {
		display: none;
	}
	.dplayer-controller .dplayer-icons .dplayer-time, .dplayer-controller .dplayer-icons .dplayer-live-badge {
		display: none;
	}
	.dplayer.dplayer-mobile .dplayer-controller .dplayer-icons .dplayer-full .dplayer-full-in-icon {
		display: none;
	}
	.dplayer-controller .dplayer-icons.dplayer-icons-left .dplayer-icon {
		display: none;
	}
	
	{/if}
	.d-tishis {

		margin-left: -17px;
		margin-top: -20px;
		width: 20px;
	}
	.d-tishiss {
	
		margin-left: -17px;
		margin-top: 0px;
	}
	.d-beijing-hongse-2 {
		background-color: #f95705;
	}
	.d-fugao-45{
		margin-top: -44px;
	}
	#head_wrapper {
	    position: relative;
	    height: 40%;
	    
	    width: 100%;
	    margin: 0 auto;
		z-index: 1;
	}
	
	
	/*顶部*/
	#head_wrapper_dingbu {
	    position: relative;
	    width: 100%;
	}
	.s_form {
	    width: 654px;
	    height: 100%;
	    margin: 0 auto;
	    text-align: left;
	    z-index: 100;
	}
	.s_form_wrapper {
	    height: 100%;
		margin-left: 10px;
		margin-right: 10px; 
	}
	.s-p-top {
	    height: 60%;
		margin-top: 80px;
	    min-height: 120px;
	    max-height: 310px;
	    position: relative;
	    z-index: 0;
	    text-align: center;
	}
	#s_lg_img, #s_lg_img_aging, #s_lg_img_new {
	    bottom: 15px !important;
	}
	#s_lg_img, #s_lg_img_aging, #s_lg_img_new {
	    position: absolute;
	    bottom: 10px;
	    left: 50%;
	    margin-left: -135px;
	}
	map {
	    display: inline;
	}
	#result_logo, #s_tab, #u, #wrapper_wrapper {
	    display: none;
	}
	#form {
	    z-index: 1;
	}
	.quickdelete-wrap {
	    position: relative;
	}
	.s_ipt_wr {
	    position: relative;
	    width: 546px;
	}
	.s_btn_wr, .s_ipt_wr {
	    /*display: inline-block;*/
	    zoom: 1;
	    background: 0 0;
	    vertical-align: top;
	}
	.soutu-env-newindex .quickdelete-wrap {
	    position: relative;
	}
	/*右边按钮高度*/
	.ipt_rec, .soutu-btn {
	    background: #fff url() no-repeat;
	    width: 24px;
	    height: 20px;
	}
	/*右边按钮*/
	.soutu-btn {
	    z-index: 1;
	    position: absolute;
	    right: 11px;
	    top: 50%;
	    margin-top: -8px;
	    height: 16px;
	    width: 18px;
	    cursor: pointer;
	}
	/*搜索框*/
	.soutu-env-mac #kw, .soutu-env-nomac #kw {
	    width: 90%;
	    padding-right: 87px;
	}
	.soutu-env-mac #kw, .soutu-env-nomac #kw1 {
	    width: 90%;
	    padding-right: 87px;
	}
	/*搜索框*/
	#kw {
	    width: 90%;
	    height: 16px;
	    padding: 12px 16px;
	    font-size: 16px;
	    margin: 0;
	    vertical-align: top;
	    outline: 0;
	    box-shadow: none;
	    border-radius: 10px 0 0 10px;
	    border: 2px solid #4bce98;
	    background: #fff;
	    color: #222;
	    overflow: hidden;
	    box-sizing: content-box;
	    -webkit-tap-highlight-color: transparent;
	}
	/*搜索框*/
	#kw1 {
	    width: 90%;
	    height: 16px;
	    padding: 12px 16px;
	    font-size: 16px;
	    margin: 0;
	    vertical-align: top;
	    outline: 0;
	    box-shadow: none;
	    border-radius: 10px 0 0 10px;
	    border: 2px solid #4bce98;
	    background: #fff;
	    color: #222;
	    overflow: hidden;
	    box-sizing: content-box;
	    -webkit-tap-highlight-color: transparent;
	}
	
	
	/*搜索宽度*/
	.s_btn_wr {
	    width: 108px;
	    height: 44px;
	    /*position: relative;*/
	    z-index: 2;
	}
	/*搜索按钮*/
	.s_btn {
	    cursor: pointer;
	    width: 108px;
	    height: 44px;
	    line-height: 45px;
	    line-height: 44px \9;
	    padding: 0;
	    background: 0 0;
	    background-color: #3fc59f;
	    border-radius: 0 10px 10px 0;
	    font-size: 17px;
	    color: #fff;
	    box-shadow: none;
	    font-weight: 400;
	    border: none;
	    outline: 0;
	}
	/*隐藏搜索*/
	.d-yincang-sousuo {
		display:none;
	}
	.d-buyincang-sousuo {
		display:block;
	}
	@media screen and (max-width: 990px) { /*褰撳睆骞曞昂瀵稿皬浜�1200px鏃讹紝搴旂敤涓嬮潰鐨凜SS鏍峰紡*/
		.s_form {
		    width: 100%;
		    height: 100%;
		    margin: 0 auto;
		    text-align: left;
		    z-index: 100;
		}
	}
</style>
{if $duoquan == 1 && !$_GET['id']}
<script src="{HOME_THEME_PATH}web/css/swiper-bundle.min.js" type="text/javascript"></script>
<script type="text/javascript">
	var mySwiper1 = new Swiper('#header',{
			slideToClickedSlide: true,
			//centeredSlides : true,
			slidesPerView: 'auto',
			initialSlide : 0,
			
		})

</script>
{/if}
<script type="text/javascript">

	$(document).ready(function() {
	    $(window).scroll(function(){
	        var scrollDistance = $(window).scrollTop();  
	  
	        if (scrollDistance >= 250) {  
	            $('.navbar-fixed-top').addClass('d-beijing-baise d-toububeijing');  
				$('#s_fm').addClass('d-buyincang-sousuo');  
				//$('#head_wrapper_dingbu').removeClass('d-yincang-sousuo'); 
				$('#d-fugao').addClass('d-fugao-45'); 
				$('#d-fugao-2').addClass('d-fugao-45'); 
	        } else {  
	            $('#s_fm').addClass('d-yincang-sousuo');  
				$('#s_fm').removeClass('d-buyincang-sousuo');  
				$('.navbar-fixed-top').removeClass('d-beijing-baise d-toububeijing');  
				$('#d-fugao').removeClass('d-fugao-45');  
				$('#d-fugao-2').removeClass('d-fugao-45');  
	        }  
			console.log('scrollDistance',scrollDistance);
	    });  
	});

</script>
